home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010921-20020314
/
000365_fdc@columbia.edu_Mon Feb 11 13:18:10 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
76 lines
Article: 13209 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: if syntax change
Date: 11 Feb 2002 13:18:01 -0500
Organization: Columbia University
Lines: 59
Message-ID: <a491sp$85l$1@watsol.cc.columbia.edu>
References: <26dc2188.0202081336.79eb8459@posting.google.com> <a41het$1na$1@watsol.cc.columbia.edu> <26dc2188.0202110943.62504aec@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1013451483 18215 128.59.39.139 (11 Feb 2002 18:18:03 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 11 Feb 2002 18:18:03 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13209
In article <26dc2188.0202110943.62504aec@posting.google.com>,
David L. Harfst <harfst@cms-stl.com> wrote:
: fdc@columbia.edu (Frank da Cruz) wrote
: in message news:<a41het$1na$1@watsol.cc.columbia.edu>...
: > In article <26dc2188.0202081336.79eb8459@posting.google.com>,
: > David L. Harfst <harfst@cms-stl.com> wrote:
: > : I have the following block of code which runs fine on
: > : C-Kermit 6.0.192 on HP-UX 10.20:
: > :
: > : xif EQUAL \$(SPEED) 14400 {
: > : # +MS=10 - Limits the connection speed to 14.4 KBaud
: > : set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
: > : }
: > :
: > : I'm trying to port this script to Linux, on which I'm
: > : running C-Kermit 8.0.200 and RedHat 7.2.
: > :
: > : ?Invalid: xif EQUAL \$(SPEED) 14400 {, set modem command
: > : Init-string AT&F0+MS=10M0X4V1S95=41\{13}
: > :
: > I think the problem is that the environment variable SPEED is not
: > defined. Thus a field is missing. You could do it this way:
: >
: > xif EQUAL "\$(SPEED)" "14400" {
: > # +MS=10 - Limits the connection speed to 14.4 KBaud
: > set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
: > }
:
: Nice thought. Unfortunetly that's not the case...
:
I checked it in 7.0.196, 8.0.200, and 8.0.201. The results are all
identical:
$ echo $SPEED
$ kermit
(/p/kd/fdc/tmp/) C-Kermit>tak x
\v(m_init) = ATQ0X4&A3&N0&Y3S14=0\{13}
(/p/kd/fdc/tmp/) C-Kermit>q
$ export SPEED=14400
$ echo $SPEED
14400
$ kermit
(/p/kd/fdc/tmp/) C-Kermit>tak x
\v(m_init) = AT&F0+MS=10M0X4V1S95=41\{13}
(/p/kd/fdc/tmp/) C-Kermit>
where x is:
set modem type usr
xif EQUAL "\$(SPEED)" "14400" {
# +MS=10 - Limits the connection speed to 14.4 KBaud
set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
}
show var m_init
No complaints from any Kermit version 7.0 or greater.
- Frank